<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><sd:head/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>LM Design</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<link href="form.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="stmenu.js"></script>
</head>
<body>
<div class="bodybox">
<div class="headerbar_top"> You are logged in as Admin !</div>
<div class="header">

</div>
<div class="wrapper">
<div class="navigation">
<a href="http://www.dhtml-menu-builder.com"  style="display:none;visibility:hidden;">Navigation Menu</a>
<s:set name="webFramework" value="#session['USERROLE']"/>
<s:if test="%{#webFramework=='Admin'}">
			<script type="text/javascript" src="admin.js"></script>
		</s:if>
		<s:if test="%{#webFramework=='Manager'}">
			<script type="text/javascript" src="locatationMngr.js"></script>
		</s:if>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
</div>
<!-- navigation end-->
<div class="content">
<h4>Edit Location</h4>
  <s:form action="searchLocation.action" method="post" >
<table>
<tr>
	<td align="left"><s:textfield id="locationCode" label="Enter Location Code" name="locationCode" tabindex="1"/>
   <!--  <td class="right"><label for="locationCode">Enter Location Code</label></td>
    <td class="left">&nbsp;</td>
    <td class="left"><input type="text" name="locationCode" id="locationCode" tabindex="1" /></td> -->
</tr>
<tr>
	<td align="left"><s:textfield id="name" label="Name" name="name" tabindex="2"/> </td>
    <!-- <td class="right"><label for="name">Name</label></td>
    <td class="left">&nbsp;</td>
    <td class="left"><input type="text" name="name" id="name" tabindex="2" /></td> -->
</tr>
<tr>
		<td align="left">
					<s:select label="Category" id="category" headerKey="" headerValue="-- select --"
					 name="category" list="#{'Ashram':'Ashram','Naam-Charcha-Ghar':'Naam-Charcha-Ghar'}"  tabindex="3" />
		</td>
    <!-- <td class="right"><label for="category">Category</label></td>
    <td class="left">&nbsp;</td>
    <td class="left"><select name="category" size="1" tabindex="3" id="category">
	<option selected>-select-</option>
	<option>Ashram</option>
	<option>Naam-Charcha-Ghar</option>
	</select>
    </td> -->
</tr>
<tr>
	<td align="left">
					<td align="left">
					<s:textfield label="Tehsil/Block" id="block" name="block" tabindex="8" />
			        </td>
		</td>
    <!-- <td class="right"><label for="category">Tehsil/Block</label></td>
    <td class="left">&nbsp;</td>
    <td class="left"><select name="block" size="1" tabindex="5" id="block">
	<option>-select-</option>
	<option>Tehsil/Block</option>
	</select></td> -->
</tr>
<tr>
	<td align="left">
					<td align="left">
					<s:select label="District" id="district" headerKey="" headerValue="-- select --"
					 name="district" list="#{'Ambala':'Ambala', 'Bhiwani':'Bhiwani', 'Faridabad':'Faridabad', 'Fatehabad':'Fatehabad', 'Gurgaon':'Gurgaon', 'Hisar':'Hisar', 'Jhajjar':'Jhajjar', 'Jind':'Jind', 'Kaithal':'Kaithal', 'Karnal':'Karnal', 'Kurukshetra':'Kurukshetra', 'Mahendragarh':'Mahendragarh', 'Mewat':'Mewat', 'Palwal':'Palwal', 'Panchkula':'Panchkula', 'Panipat':'Panipat', 'Rewari':'Rewari', 'Rohtak':'Rohtak', 'Sirsa':'Sirsa', 'Sonipat':'Sonipat', 'Yamuna Nagar':'Yamuna Nagar'}"  tabindex="7" />
			    </td>
	</td>	
    <!-- <td class="right"><label for="district">District</label></td>
    <td class="left">&nbsp;</td>
    <td class="left"><select name="district" size="1" tabindex="6" id="district">
	<option>-select-</option>
	<option>District</option>
	</select></td> -->
</tr>
<tr>
	<td align="left">
					<s:select label="State" id="state" headerKey="" headerValue="-- select --"
					 name="state" list="#{'Haryana':'Haryana'}"  tabindex="7" />
	</td>
    <!-- <td class="right"><label for="state">State</label></td>
    <td class="left">&nbsp;</td>
    <td class="left"><select name="state" size="1" tabindex="7" id="state">
	<option>-select-</option>
	<option>State</option>
	</select></td> -->
</tr>
<tr>
	<td align="left">
					<s:select label="Country" id="country" headerKey="" headerValue="-- select --"
					 name="country" list="#{'India':'India'}"  tabindex="8" />
	</td>
    <!-- <td class="right"><label for="country">Country</label></td>
    <td class="left">&nbsp;</td>
    <td class="left"><select name="country" size="1" tabindex="8" id="country">
	<option>-select-</option>
	<option>Country</option>
	</select></td> -->
</tr>
<tr>
    <td class="right">&nbsp;</td>
    <td class="left">&nbsp;</td>
    <td class="left">
    <s:submit name="Search" value="Search" type="button" align="left" tabindex="9" />
    <!-- <input type="submit" name="Search" id="Sreach" value="Search" /> --></td>
</tr>
</table>
 <p>&nbsp;</p>
 </s:form>
 <p id="information">Click on Delete to delete the location...</p>
<table class="">
<tr class="">
    <th class="left border">Location Code</th>
    <th class="left border">Name</th>
    <th class="left border">Category</th>
    <th class="left border">Tehsil/Block</th>
    <th class="left border">District</th>
    <th class="left border">State</th>
    <th class="left border">Country</th>
    <th class="left border"> Delete </th>
</tr>
<!-- <tr class="row border">
    <td class="left border"><a href="editLocationDo.html" title="Click here to edit" target="_self">48237</a></td>
    <td class="left border">&nbsp;</td>
    <td class="left border">&nbsp;</td>
    <td class="left border ">&nbsp;</td>
    <td class="left border">&nbsp;</td>
    <td class="left border">&nbsp;</td>
    <td class="left border">&nbsp;</td>
</tr> -->

<s:iterator value="locationList" status="trx">

        <tr class="row border">
           
            <td class="nowrap"><s:property value="locationCode"/></td>
            <td class="nowrap"><s:property value="name"/></td>
            <td class="nowrap"><s:property value="category"/></td>            
            <td class="nowrap"><s:property value="block"/></td>
            <td class="nowrap"><s:property value="district"/></td>
            <td class="nowrap"><s:property value="state"/></td>
           <td class="nowrap"><s:property value="country"/></td>
            <td>
            <s:url id="delete" action="deleteLocation">
		      <s:param name="locationID" value="locationID"/></s:url> 
				<s:a href="%{delete}"> delete </s:a>
			</td>

                    	        
        </tr>  		
	 </s:iterator>	

</table>
</div>
<!-- content end-->
</div> 
<!-- wrapper end-->
<div class="bottom_strip"></div>
<div class="headerbar_bottom">
&copy; Copyright 2011. Dera Sacha Sauda, Sirsa-125055 (Haryana)
<br />
Designed By: DSS IT WING</div>
</div>
</body>
</html>
